/* Userinfo.css */

.page-wrapper.user-info-page {
    background: linear-gradient(145deg, #eceff1 0%, #dfe6e9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .user-info-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
  }
  
  .user-info-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 960px;
    padding: 2rem;
    margin: 0 auto;
  }
  
  .user-info-title {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
  }
  
  .user-info-form {
    margin-top: 1rem;
  }
  
  /* Form Sections */
  .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .section-title {
    font-size: 1.5rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1.25rem;
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  
  /* Form Group */
  .form-groupp {
    display: flex;
    flex-direction: column;
    background: #F9EFD6; /* Changed to requested color */
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  .form-groupp label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a202c; /* Darker for contrast */
    margin-bottom: 0.5rem;
  }
  
  .form-groupp label::after {
    content: '*';
    color: #c53030;
    margin-left: 4px;
    display: none;
  }
  
  .form-groupp label[for='firstname']::after,
  .form-groupp label[for='lastname']::after,
  .form-groupp label[for='email']::after,
  .form-groupp label[for='username']::after,
  .form-groupp label[for='password']::after {
    display: inline;
  }
  
  .form-groupp input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d4c9a8; /* Border blends with #F9EFD6 */
    border-radius: 6px;
    font-size: 1rem;
    background: #fff; /* Slightly lighter for input */
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  
  .form-groupp input:disabled {
    background: #fff; /* Slightly darker for disabled state */
    color: #5a6268;
    cursor: not-allowed;
  }
  
  .form-groupp input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
  }
  
  /* User Image */
  .user-image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff; /* Match form-group */
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  .user-image {
    width: 100px;
    height: 100px;
    
    object-fit: cover;
    margin-bottom: 1rem;
    
  }
  
  .user-image-placeholder {
    width: 100px;
    height: 100px;
    
    background: #f5f0e0; /* Slightly darker than form-group */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6268;
    font-size: 0.9rem;
    text-align: center;
    border: 2px solid #d4c9a8;
  }
  
  .form-groupp input[type='file'] {
    padding: 0.5rem 0;
    border: none;
    font-size: 0.9rem;
    background: transparent; /* Blend with form-group */
  }
  
  /* Username Feedback */
  .username-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    min-height: 1.2rem; /* Prevent layout shift */
    color: #1a202c; /* Ensure readability */
  }
  
  .okTips {
    color: #2f855a;
  }
  
  .errorTips {
    color: #c53030;
  }
  
  /* Form Actions */
  .form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
  }
  
  .form-actions button {
    position: relative;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  .form-actions button:hover {
    transform: translateY(-2px);
  }
  
  .edit-btn {
    background: #2b6cb0;
    color: #fff;
  }
  
  .edit-btn::before {
    content: '✎';
    margin-right: 0.5rem;
  }
  
  .edit-btn:hover {
    background: #2c5282;
  }
  
  .save-btn {
    background: #2f855a;
    color: #fff;
  }
  
  .save-btn::before {
    content: '✔';
    margin-right: 0.5rem;
  }
  
  .save-btn:hover {
    background: #276749;
  }
  
  .cancel-btn {
    background: #718096;
    color: #fff;
  }
  
  .cancel-btn::before {
    content: '✖';
    margin-right: 0.5rem;
  }
  
  .cancel-btn:hover {
    background: #5a6268;
  }
  
  .delete-btn {
    background: #c53030;
    color: #fff;
  }
  
  .delete-btn::before {
    content: '🗑';
    margin-right: 0.5rem;
  }
  
  .delete-btn:hover {
    background: #9b2c2c;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .user-info-container {
      padding: 2rem 1rem;
    }
  
    .user-info-card {
      padding: 1.5rem;
    }
  
    .user-info-title {
      font-size: 1.8rem;
    }
  
    .section-title {
      font-size: 1.3rem;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
    }
  
    .form-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .form-actions button {
      width: 100%;
    }
  
    .user-image,
    .user-image-placeholder {
      width: 80px;
      height: 80px;
    }
  }
  
  @media (max-width: 480px) {
    .user-info-title {
      font-size: 1.6rem;
    }
  
    .section-title {
      font-size: 1.2rem;
    }
  
    .form-groupp input {
      padding: 0.7rem;
      font-size: 0.95rem;
    }
  
    .form-actions button {
      padding: 0.7rem;
      font-size: 0.95rem;
    }
  }
  .user-image-container img{
    object-fit: fill;
  }